From 5251ba6542cc2623842852fa699b9f40a4be7301 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Tue, 27 Jul 2010 17:55:20 +0100 Subject: [PATCH] libxl: const-correctness fix to device_physdisk_major_minor device_physdisk_major_minor does not intend to modify physpath. Signed-off-by: Christoph Egger Committed-by: Ian Jackson --- tools/libxl/libxl_device.c | 2 +- tools/libxl/libxl_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index a051d53e53..194134e299 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -123,7 +123,7 @@ char *device_disk_backend_type_of_phystype(libxl_disk_phystype phystype) } } -int device_physdisk_major_minor(char *physpath, int *major, int *minor) +int device_physdisk_major_minor(const char *physpath, int *major, int *minor) { struct stat buf; if (stat(physpath, &buf) < 0) diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index 129e22cd50..205d37306d 100644 --- a/tools/libxl/libxl_internal.h +++ b/tools/libxl/libxl_internal.h @@ -149,7 +149,7 @@ void libxl__userdata_destroyall(struct libxl_ctx *ctx, uint32_t domid); char *device_disk_backend_type_of_phystype(libxl_disk_phystype phystype); char *device_disk_string_of_phystype(libxl_disk_phystype phystype); -int device_physdisk_major_minor(char *physpath, int *major, int *minor); +int device_physdisk_major_minor(const char *physpath, int *major, int *minor); int device_disk_dev_number(char *virtpath); int libxl_device_generic_add(struct libxl_ctx *ctx, libxl_device *device, -- 2.30.2